//
//  LLUserDelegateVC.m
//  LoveLove
//
//  Created by leiyifan on 2019/5/26.
//  Copyright © 2019 wkf. All rights reserved.
//

#import "LLUserDelegateVC.h"
#import "WKDelegateController.h"

@interface LLUserDelegateVC ()<WKUIDelegate,WKNavigationDelegate,WKScriptMessageHandler,WKDelegate>
@property (nonatomic,strong)  WKUserContentController *userContentController;

@property (nonatomic,weak)  WKWebView *wkwebView;
@end

@implementation LLUserDelegateVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    //    [self createWebView];
    [self setStartLoadBlock:^(id webView) {
        NSLog(@"block success");
    }];
    [self setFinishLoadBlock:^(id webView) {
        NSLog(@"block finish");
    }];
    
    //    [self addBridge];
    
        [self loadUrl];
}
//- (void)userContentController:(WKUserContentController *)userContentController didReceiveScriptMessage:(WKScriptMessage *)message{
//    if ([self.delegate respondsToSelector:@selector(userContentController:didReceiveScriptMessage:)]) {
//        [self.delegate userContentController:userContentController didReceiveScriptMessage:message];
//    }
//}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
